//
//  UIView+Rounded.h
//  WHPersonalData
//
//  Created by shengmeng chen on 2022/11/9.
//  Copyright © 2022 mac. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (Rounded)

/// 给view加圆角
/// - Parameters:
///   - radius: 圆角大小
///   - byRoundingCorners: 圆角位置
///   - view: 要加圆角的view
+(void)setViewRoundedWithRad:(CGFloat)radius byRoundingCorners:(UIRectCorner) corner view:(UIView *) view;

/// 给view加圆角和阴影
/// - Parameters:
///   - radius: 圆角大小
///   - corner: 圆角位置
-(void)setViewRoundedShadowWithRad:(CGFloat)radius byRoundingCorners:(UIRectCorner) corner;

/// 给view加边框
/// - Parameters:
///   - borderWidth: 边框宽度
///   - color: 边框颜色
///   - cornerRadius: 边框圆角度数
-(void)setViewBorderWithBorderWidth:(CGFloat)borderWidth color:(UIColor *) color cornerRadius:(CGFloat)cornerRadius;


/// 给view加虚线
/// - Parameters:
///   - color: 虚线颜色
- (void)addDottedLineFromColor:(UIColor *) color;
@end

NS_ASSUME_NONNULL_END
